package com.ruoyi.project.menzhen.mapper;
import com.ruoyi.project.menzhen.domain.User;
import com.ruoyi.project.system.domain.SysPost;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;
@Mapper
public interface MenzhenUserMapper {
    List<User> selectUserList (User user);
    @Insert("insert into mz_user values (default,#{userName},#{userSnum},#{userPhone},#{userSex},#{userAddr},#{userAge},#{userBrithday},#{userMony},#{userCode}," +
            "#{status},#{createTime},#{userMz},#{userGm},#{userSd},#{userOp},#{remark})")
     int insertUser(User user);
    int updateUser(User user);
    User selectUserById(Long userId);
}
